package model

import (
	"time"
)

type ProductData struct {
	ProductId uint `json:"product_id"`
	Quantity  int  `json:"quantity"`
}

type Order struct {
	Id             uint       `json:"id,omitempty"`
	UserId         int64      `json:"user_id,omitempty"`
	TotalPrice     float32    `json:"total_price,omitempty"`
	OrderStatus    int8       `json:"order_status,omitempty"`
	PaymentStatus  int8       `json:"payment_status,omitempty"`
	DeliveryStatus int8       `json:"delivery_status,omitempty"`
	DeletedTime    *time.Time `json:"deleted_time,omitempty"`
	UpdatedTime    *time.Time `json:"updated_time,omitempty"`
	CreatedTime    *time.Time `json:"created_time,omitempty"`
}

func (o *Order) TableName() string {
	return "order"
}
